package com.ruoyi.system.domain.quality;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * @author GE-LV5
 * @create 2023/2/28 14:47
 * ==========来料检验单==============
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("quality_incoming_material")
public class QualityIncomingMaterial extends BaseEntity {


    @TableId(value = "id")
    @Excel(name = "序号")
    private Long id;


    @ApiModelProperty(value = "来料单号")
    @Excel(name = "来料单号")
    private String incomingCode;


    @ApiModelProperty(value = "订单号")
    @Excel(name = "订单号")
    private String orderCode;

    @ApiModelProperty(value = "质检单号")
    @Excel(name = "质检单号")
    private String qualityNumber;


    @ApiModelProperty(value = "产品名称")
    @Excel(name = "产品名称")
    private String productName;

    @ApiModelProperty(value = "检验报告")
    @Excel(name = "检验报告")
    private String surveyReport;

    @ApiModelProperty(value = " 库房/检验室")
    @Excel(name = " 库房/检验室")
    private String warehouse;


    @ApiModelProperty(value = "检验日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "检验日期")
    private String checkDate;


    @ApiModelProperty(value = "结论")
    @Excel(name = "结论")
    private String conclusion;

    @ApiModelProperty(value = "检验数量")
    @Excel(name = "检验数量")
    private Integer checkoutNumber;

    @ApiModelProperty(value = "合格数")
    @Excel(name = "合格数")
    private Integer acceptanceNumber;

    @ApiModelProperty(value = "不合格数")
    @Excel(name = "不合格数")
    private Integer disqualificationNumber;

    @ApiModelProperty(value = "入库类型")
    @Excel(name = "入库类型")
    private String storageType;

    @ApiModelProperty(value = "状态")
    @Excel(name = "状态")
    private String status;

    @ApiModelProperty(value = "单据类型")
    @Excel(name = "单据类型")
    private String ItemType;

    @ApiModelProperty(value = "图片地址")
    @Excel(name = "图片地址")
    private String url;

}
